const path = require("path");
const resolve = dir => path.join(__dirname, dir);
module.exports = {
  publicPath:
    process.env.NODE_ENV === `production` ? `/production-sub-path/` : `/`,
  productionSourceMap:false,
  outputDir: resolve('/dist'),
  devServer: {
    port: 21394,
    open: true,
    overlay: {
      warnings: false,
      errors: false
    },
    proxy: {
      "/api": {
        target: `http://127.0.0.1:3009/api`,
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api": ``
        }
      }
    }
  },
  configureWebpack: {}
};
